package tdd.t1;

import java.util.logging.Logger;

public class Apply {	
	final static private Logger LOG = Logger.getLogger("Apply");	
	private Apply() {
		
	}
	public static  double chargeByTime(Charger c, double miles, int time) {		
		try {			
			return c.chargeByTime(miles, time);
		} catch (Exception e) {
			LOG.info(c.name() + " " + "input invliad para");			
			return 0;
		}
	}
}

